import Nofound from '.././views/supplier/Nofound.vue'
import Login from '.././views/supplier/Login.vue'
import Iframe from '.././views/supplier/Iframe.vue'
import Main from '.././views/supplier/Main.vue'
import OrderPdd from '.././views/supplier/qingshanerp/OrderPdd.vue'

const supplier_routers = [
  // 登录
  {
    path: '/',
    name: 'login',
    component: Login,
    meta: { requiresAuth: false }
  },
  // 内容的模板
  {
    path: '/',
    component: Iframe,
    meta: { requiresAuth: true },
    children: [
      {
        path: 'order/pddlist',
        name: 'order-pddlist',
        meta: { requiresAuth: true },
        component: OrderPdd
      },
      // 首页
      {
        path: 'index/index',
        name: 'index-index',
        meta: { requiresAuth: true },
        component: Main
      },
      // 其它404
      {
        path: '*',
        name: 'noaccess',
        meta: { requiresAuth: true },
        component: Nofound
      },
    ]
  },
  // 其它404
  {
    path: '*',
    name: 'noaccess',
    meta: { requiresAuth: false },
    component: Nofound
  }
]

export default supplier_routers